home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_11_08
/
hellquis
/
testint.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1993-01-16
|
527b
|
27 lines
//testint.cpp -- simple test routine for GetPrivateProfileInt
#include "profiles.h"
#include <string.h>
#include <iostream.h>
void main()
{
char app[81];
char key[81];
WORD val ;
//-- repeatedly test getting a specific key
for (;;)
{
cout << "Application :";
cin.get(app,sizeof(app));
cin.ignore();
cout << "Key :";
cin.get(key,sizeof(key)) ;
cin.ignore();
val = GetPrivateProfileInt
(app,key,12345,"test.ini");
cout << "val : " << val << "\n" ;
}
}
//-- end of testint.cpp